﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Gasco.DataAccess;

namespace Gasco.Business.Services
{
    public interface ILookupService<T> where T : LINQLookupEntity
    {
        int CountGetAll();
        IList<T> GetAll();
        IList<T> FindByName(string name);
        T FindById(int id);
        T Create(T entity);
        void Update(T entity);
        void Delete(T entity);
        void Delete(int id);
        IList<T> SearchAll(string keyword, int pageSize, int pageNumber, string sortBy, string sortDirection);
        int CountSearchAll(string keyword);
        
        
    }
}
